home *** CD-ROM | disk | FTP | other *** search
- on(release){
- if(activeMCList.length > 1)
- {
- stopAllSounds();
- tellTarget("_root.dynamicbuttonMc")
- {
- gotoAndStop(1);
- }
- if(passiveMC <= _root.activeTotal and passiveMC > 1)
- {
- passiveMC -= 1;
- }
- else if(passiveMC = 1)
- {
- passiveMC = _root.activeTotal;
- }
- if(_root.direction eq "forward")
- {
- _root.activeMC = _root.activeMCList.pop();
- _root.activeMClist.unshift(_root.activeMC);
- _root.activeMC = _root.activeMCList.pop();
- _root.activeMClist.unshift(_root.activeMC);
- }
- else if(_root.direction eq "backward")
- {
- _root.activeMC = _root.activeMCList.pop();
- _root.activeMClist.unshift(_root.activeMC);
- }
- tellTarget("_root.dynamicbuttonMc")
- {
- setProperty("frontAudioInstance", _visible, false);
- setProperty("backAudioInstance", _visible, false);
- setProperty("frontImageHolderInstance", _visible, false);
- setProperty("backImageHolderInstance", _visible, false);
- var question = _root.frontArray[_root.activeMC];
- var answer = _root.backArray[_root.activeMC];
- var frontAudio = _root.frontAudioArray[_root.activeMC];
- var backAudio = _root.backAudioArray[_root.activeMC];
- var frontImage = _root.frontImageArray[_root.activeMC];
- var backImage = _root.backImageArray[_root.activeMC];
- setProperty("_root.flipcursor1", _visible, false);
- gotoAndPlay(1);
- }
- cardlisting = "Tarjeta: <font color =\"#6868CE\">" + _root.passiveMC + "</font>" + " de " + "<font color =\"#6868CE\">" + _root.activeTotal + "</font>";
- }
- _root.direction = "backward";
- }
-